import request from "@/utils/request";

export function addTestPaper(data) {
  return request({
    url: `/core/exam-paper/create`,
    method: "post",
    data,
  });
}
// 获取试卷列表
export function getTestPaperList(params) {
  return request({
    url: `/core/exam-paper/list`,
    method: "get",
    params,
  });
}
// 获取试卷详情
export function getTestPaperDetail(ids) {
  return request({
    url: `/core/exam-paper/details/${ids}`,
    method: "get",
  });
}
// 删除试卷
export function deleteTestPaperByIds(ids) {
  return request({
    url: `/core/exam-paper/delete/${ids}`,
    method: "delete",
  });
}
// 修改试卷
export function editTestPaper(data) {
  return request({
    url: `/core/exam-paper/update`,
    method: "put",
    data,
  });
}
// 自动组卷
export function autoTestPaper(data) {
  return request({
    url: `/core/exam-paper/auto/combine`,
    method: "post",
    data,
  });
}
